package com.ruoyi.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Data
@ApiModel("工作流相关参数")
public class ActivitiDto {

    @Data
    @ApiModel("部署流程文件实体")
    public static class DeployDto {
        @ApiModelProperty("流程文件的绝对路径")
        private String bpmnAbsoluteFilePath;
        @ApiModelProperty("部署名称")
        private String deploymentName;
    }

    @Data
    @ApiModel("启动流程实例实体")
    public static class StartProcessInstance {
        @ApiModelProperty("流程定义ID")
        private String processDefinitionId;
        @ApiModelProperty("业务ID")
        private String businessId;
        @ApiModelProperty("流程变量")
        private Map<String, Object> variables;
    }

    @Data
    @ApiModel("获取流程变量实体")
    public static class GetProcessVariables {
        @ApiModelProperty("流程定义ID")
        private String processDefinitionId;
        @ApiModelProperty("业务ID")
        private String businessId;
    }

    @Data
    @ApiModel("完成任务实体")
    public static class completeTaskDto {
        @ApiModelProperty("任务ID")
        private String taskId;
        @ApiModelProperty("是否通过")
        private Boolean isPass;
    }
}
